package com.varma.android.aws.app;

import java.io.File;

import android.app.Application;
import android.content.res.Configuration;
import android.os.FileUtils;

import com.hisense.hitv.util.FileUtil;

public class AWSApplication extends Application
{
    @Override
    public void onConfigurationChanged(Configuration newConfig)
    {
        super.onConfigurationChanged(newConfig);
    }

    @Override
    public void onCreate()
    {
        super.onCreate();

        File f = this.getFilesDir();
        if (!f.exists())
        {
            f.mkdirs();
            AppLog.logString("mkdirs:" + f.getAbsolutePath());
        }
//        FileUtil.chmod(f.getAbsolutePath(), FileUtils.S_IRWXU
//            | FileUtils.S_IRWXG | FileUtils.S_IXOTH); 
        FileUtils.setPermissions(this.getFilesDir().getAbsolutePath(), FileUtils.S_IRWXU
            | FileUtils.S_IRWXG | FileUtils.S_IXOTH, -1, -1);

    }

    @Override
    public void onLowMemory()
    {
        super.onLowMemory();
    }

    @Override
    public void onTerminate()
    {
        super.onTerminate();
    }
}
